package com.example.administrator.testproject.MVP.Base;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import butterknife.ButterKnife;

/**
 * Created by Administrator on 2016/10/19 0019.
 */

public abstract class BaseActivity extends AppCompatActivity {

    protected View contentView;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        contentView = getLayoutInflater().from(this).inflate(setContentViews(), null);
        setContentView(contentView);
        ButterKnife.bind(this);
    }

    protected abstract int setContentViews();
}
